;(function (doc, win) {
    var docEl = doc.documentElement,
      resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
      recalc = function () {
        var clientWidth = docEl.clientWidth;
        var clientHeight = docEl.clientHeight;
        if (!clientWidth) return;
        docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
        /*if (clientWidth < clientHeight) {
            docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
        }else{
          docEl.style.fontSize = 50 * (clientWidth / 1136) + 'px';
        }*/
      };
    if (!doc.addEventListener) return;
    win.addEventListener(resizeEvt, recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false);   
})(document, window);

window.onload = function (){
    // 苹果手机采用CSS1
  if(/iphone/i.test(navigator.userAgent)){
      $(".contentWrap").addClass("mt1s8");
  }
  // 安卓手机采用CSS2
  if(/android/i.test(navigator.userAgent)){
    $(".contentWrap").css("padding-top","0.89rem");
  }
     
}


    